﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sheep_Breeding.Domain
{
    /// <summary>
    /// 羊场管理实体类
    /// </summary>
    public class Sheepfarm_management
    {
        /// <summary>
        /// 序号 - 主键，自增
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int SheepfarmId { get; set; }

        /// <summary>
        /// 羊场编码
        /// </summary>
        
        public string? FarmCode { get; set; }

        /// <summary>
        /// 羊场全称
        /// </summary>
     
        public string? FarmName { get; set; }

        /// <summary>
        /// 羊场简称
        /// </summary>
        
        public string? FarmShortName { get; set; }

        /// <summary>
        /// 羊场规模 - 外键
        /// </summary>
        public int? TheScaleOfSheepfarmId { get; set; }

        /// <summary>
        /// 建账日期
        /// </summary>
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        
        public string? Manager { get; set; }

        /// <summary>
        /// 详细地址
        /// </summary>
      
        public string? Address { get; set; }

        /// <summary>
        /// 管理部门
        /// </summary>
      
        public string? Department { get; set; }

        /// <summary>
        /// 状态 - 默认true启用
        /// </summary>
        public bool Status { get; set; } = true;

        /// <summary>
        /// 创建人
        /// </summary>
      
        public string? Creator { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime  CreateTime { get; set; }=DateTime.Now;

        /// <summary>
        /// 修改人
        /// </summary>
        
        public string? Modifier { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyTime { get; set; }

        /// <summary>
        /// 删除标记 - 默认false
        /// </summary>
        public bool IsDelete { get; set; } = false;
    }
}
